﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace jnxc.Web.ecshop
{
    public partial class companys : System.Web.UI.Page
    {
        BLL.factoryinfo bll = new BLL.factoryinfo();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {                
                bindData();
            }

        }
        void bindData()
        {
            DataSet ds = bll.GetList(10, "fstate=1 and ftype='物理防治'", "fid desc");
            rptl.DataSource = ds.Tables[0];
            rptl.DataBind();
            ds = bll.GetList(10, "fstate=1 and ftype='生物防治'", "fid desc");
            rpt2.DataSource = ds.Tables[0];
            rpt2.DataBind();
            ds = bll.GetList(10, "fstate=1 and ftype='化学防治'", "fid desc");
            rpt3.DataSource = ds.Tables[0];
            rpt3.DataBind();

           
        }

    }
}